//SPDX-FileCopyrightText: Copyright 2025-2025 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

package board_dao

import (
	"context"

	"gitcode.com/eteam/api-server/dao/common"
	"go.mongodb.org/mongo-driver/mongo"
)

type _RemoveBoardInfoDao struct {
	mc *mongo.Collection
}

func newRemoveBoardInfoDao(db *mongo.Database) (*_RemoveBoardInfoDao, error) {
	mc := db.Collection(common.DB_NS_BOARD + "remove_info")
	return &_RemoveBoardInfoDao{mc: mc}, nil
}

func (db *_RemoveBoardInfoDao) Insert(ctx context.Context, dbItem *BoardInfoDbItem) error {
	_, err := db.mc.InsertOne(ctx, dbItem)
	return err
}
